package com.remote
{
	import mx.controls.Alert;
	import mx.rpc.AsyncToken;
	import mx.rpc.IResponder;
	import mx.rpc.remoting.RemoteObject;

	public class ParameterService
	{
		private var ro:RemoteObject;
		public function ParameterService()
		{
			ro = new mx.rpc.remoting.RemoteObject("parameter");
			ro.source = "system.ParameterService";
		}
		
		public function getParameterDetail(id:String, responder:IResponder = null ):void
		{			
			var asyncToken:AsyncToken  = ro.getParameterDetail(id);
			if( responder != null )
				asyncToken.addResponder(responder);			
		}
		
		public function getParameterByID(id:String, responder:IResponder = null ):void
		{
			var asyncToken:AsyncToken  = ro.getParameterByID(id);
			if( responder != null )
				asyncToken.addResponder(responder);	    
		}
		
		public function deleteParamDetail(paramID:String, paramName:String, paramDetailList:String, userAction:String, responder:IResponder = null ):void
		{
			var asyncToken:AsyncToken  = ro.deleteParamDetail(paramID, paramName, paramDetailList, userAction);
			if( responder != null )
				asyncToken.addResponder(responder);	    
		}
		
	}
}